package cn.iocoder.yudao.module.game.dal.mysql.agentSummary;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.game.dal.dataobject.agentSummary.AgentSummaryDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.game.controller.admin.agentSummary.vo.*;

/**
 * 代理汇总 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface AgentSummaryMapper extends BaseMapperX<AgentSummaryDO> {

    default PageResult<AgentSummaryDO> selectPage(AgentSummaryPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<AgentSummaryDO>()
                .betweenIfPresent(AgentSummaryDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(AgentSummaryDO::getId));
    }

}